class AddUserAttributes < ActiveRecord::Migration
  NEW_COLUMNS = {
    :first_name => :string,
    :last_name => :string,
    :address => :text,
    :home_phone => :string,
    :mobile_phone => :string,
    :allergies => :string,
    :can_drive => :boolean
  }

  def self.up
    NEW_COLUMNS.each do |column, type|    
      add_column :users, column, type
    end
  end

  def self.down
    NEW_COLUMNS.each do |column, type|
      remove_column :users, column
    end
  end
end
